import { App } from 'vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const installIconComponent = (app: App<Element>) => {
  // 注册elementUi的图标组件
  for (let [key, component] of Object.entries(ElementPlusIconsVue)) {
    if(key == "Menu"){ key = 'IconMenu' }
    app.component(key, component)
  }
}

export default installIconComponent